import 'package:flutter/material.dart';

class ScaffoldPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("头部标题栏"),
        actions: <Widget>[
          Icon(Icons.delete),
          SizedBox(width: 20),
          Icon(Icons.cancel),
          SizedBox(width: 20),
          Icon(Icons.more),
          SizedBox(width: 20),
        ],
      ),
      body: Center(
        child: Text("页面部分"),
      ),
      bottomSheet: Container(
        height: 50,
        width: double.infinity,
        color: Colors.red,
        child: Center(child: Text("底部工具栏")),
      ),
      floatingActionButton: Container(
        margin: EdgeInsets.only(bottom: 50),
        child: FloatingActionButton(
          child: Icon(Icons.add),
          onPressed: () {
            print("on click");
          },
        ),
      ),
    );
  }
}
